package com.hxkj.dao.impl;

import com.hxkj.dao.LabelExtDao;
import com.hxkj.mapper.LabelExtMapper;
import com.hxkj.domain.po.LabelExt;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;


/**
* 标签管理拓展表数据操作实现
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-07-19 17:28:12
*
*/
@Service("labelExtDao")
public class LabelExtDaoImpl implements LabelExtDao {

    @Resource
    private LabelExtMapper labelExtMapper;

    @Override
    public LabelExt get(Long labelExtId) {
        return labelExtMapper.selectByPrimaryKey(labelExtId);
    }

    @Override
    public List<LabelExt> get(LabelExt labelExt) {
        return labelExtMapper.select(labelExt);
    }

    @Override
    public int delete(Long labelExtId) {
        return labelExtMapper.deleteByPrimaryKey(labelExtId);
    }

    @Override
    public int delete(LabelExt labelExt) {
        return labelExtMapper.delete(labelExt);
    }

    @Override
    public int save(LabelExt labelExt) {
        return labelExtMapper.insert(labelExt);
    }

    @Override
    public int update(LabelExt labelExt) {
        return labelExtMapper.update(labelExt);
    }

    @Override
    public int batchInsertExt(List<LabelExt> extList) {
        return labelExtMapper.batchInsertExt(extList);
    }
}
